package com.wbt.spring.support;


import com.wbt.spring.support.config.AppConfig;
import com.wbt.spring.support.service.UsersService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class ContextApplication {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(AppConfig.class);

        UsersService userService = context.getBean(UsersService.class);
        System.out.println("User信息：" + userService.getUser().toString());
        System.out.println("UserList信息：" + userService.getListUser().toString());
    }
}
